﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Com.Framework;
using Com.Library.DB.MP3Player;
namespace coffinegurunaru
{
    public partial class _Default : System.Web.UI.Page
    {
		public string MP3URL
		{
			get;
			set;
		}

		public string Redirect
		{
			get;
			set;
		}
        protected void Page_Load(object sender, EventArgs e)
        {
			Redirect = Request.QueryString["Redirect"].Parse(string.Empty);
			if (Redirect == string.Empty)
				Redirect = "/home/default.aspx";
			List<MP3PlayerEntity> MP3List = MP3PlayerModel.GetList(1, 5).Record;

			if (MP3List.Count > 0)
			{
				MP3URL = MP3List[0].MP3URL;
			}
			else
			{
				MP3URL = "/FileServer/1.mp3";
			}
        }
    }
}

